﻿using PRO.ORM;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace PRO.Entity
{
    [EntityAttribute(TableName = "PermissionItem")]
    public class PermissionItem : BaseEntity
    {
        public PermissionItem()
        {
            //this.CreateTable();
        }
        private int _ID;
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4, PrimaryKey = true)]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private int _GroupID;
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4)]
        public int GroupID
        {
            get { return _GroupID; }
            set { _GroupID = value; }
        }
        private string _Permission;
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 100)]
        public string Permission
        {
            get { return _Permission; }
            set { _Permission = value; }
        }
        private string _PermissionNote;
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 250, NotNull = false)]
        public string PermissionNote
        {
            get { return _PermissionNote; }
            set { _PermissionNote = value; }
        }
        //[EntityAttribute(SqlDbType = SqlDbType.Decimal, Len = 3, NotNull = false)]
        //public decimal Len { get; set; }

        //[EntityAttribute(SqlDbType = SqlDbType.DateTime, Len = 8)]
        //public DateTime adddate { get; set; }

        //[EntityAttribute(SqlDbType = SqlDbType.Float, Len = 4, DefaultValue = 0)]
        //public float Price { get; set; }

        //[EntityAttribute(SqlDbType = SqlDbType.Bit, Len = 1, DefaultValue = false)]
        //public bool Bool { get; set; }

        //[EntityAttribute(SqlDbType = SqlDbType.Text, Len = 8)]
        //public string Content { get; set; }

        //[EntityAttribute(SqlDbType = SqlDbType.Money, Len = 4)]
        //public string money { get; set; }

    }
}
